<include file="Public/header" />
<title>密码修改</title>
</head>
<body>
<div class="pd-20">
<form class="" name="postForm" id="postForm" action="__URL__/confirm_add/" enctype="multipart/form-data" method="post" >
	<table class="table table-border table-bordered table-bg">
		<tbody>
		<tbody>
			<tr class="text-c">
				<td width="15%" class="text-r" style="background-color:#f5f5f5">logo</td>
				<td class="text-l" width="35%">
					<input type="file" name="logo" class="input-text" value="" >
				</td>
			</tr>
			<tr class="text-c">
				<td width="15%" class="text-r" style="background-color:#f5f5f5">公司名称</td>
				<td class="text-l" width="35%">
					<input type="text" name="company_name" class="input-text" value="" >
				</td>
			</tr>
		</tbody>
		</tbody>
	</table>
	<input type="button" class="btn btn-primary radius mt" id="b_add" value="修改">
</form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/jquery.form.js"></script>
<script type="text/javascript">
    $(function(){
		$("#b_add").click(function(){
	        $("#postForm").ajaxSubmit({  
	            url: "<{:U('logo')}>",
	            type : "post",
	            dataType : 'json',  
	            success : function(data){
					console.log(data.status);
					if(data.status==1){
						layer.msg(data.message,function(){
							parent.window.location.href = parent.window.location.href;
						});
					}else{
						layer.msg(data.message);
					}
	            },  
	            error : function(data) {  
	                layer.msg('出错');
	            }
	        });  
	    });
    })
</script>
</body>
</html>